#ifndef BACKGROUND_H_
#define BACKGROUND_H_


#include <MAUtil/Moblet.h>
#include <NativeUI/Widgets.h>
#include <NativeUI/WidgetUtil.h>
#include <MAUtil/Graphics.h>
#include "MAHeaders.h"

using namespace MAUtil;
using namespace NativeUI;


class Background
{
	private:

		int block_x, block_y;
		MAExtent screenSize;
		MARect  bg_srcRect, block_scrRect;
	    MAPoint2d bg_dstPt, block_dstPt;

	public:
	    Background(){
	    	 screenSize = maGetScrSize();
	    	 bg_srcRect.width = EXTENT_Y(screenSize);
	    	 bg_srcRect.height = EXTENT_X(screenSize);

	    	 block_x = bg_srcRect.width/10;
	    	 block_y = (bg_srcRect.height/10)*8;
	    }



	    void drawTitle()
	    {
	    	Gfx_drawImage(TITLE_SCREEN,(bg_srcRect.width - 1280)/2,(bg_srcRect.height- 720)/2);
	    }
	    void draw(){

	    	Gfx_drawImage(BACKGROUND_TEST,0,0);
	    	//Gfx_drawImage(BLOCK,block_x*5,block_y);

	    	//Gfx_drawImage(BLOCK,block_x*2,block_y);




	    }

	    int blockPos_x(){
	    	return block_x;

	    }

	    int blockPos_y(){
	    	return block_y;
	    }



};
#endif
